<?php
//关键词回复
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => '/wechat/function/reply/'], function() {

	$this->get('view/{id}', 'Fun\Reply\KeywordController@getOne')->where('id','[0-9]+');
	//获取列表
    $this->get('view/list', 'Fun\Reply\KeywordController@getLists');
    //获取其他类型回复
    $this->get('view/other', 'Fun\Reply\OtherController@getReply');
	//更新回复
    $this->post('update', 'Fun\Reply\KeywordController@updateKeyword');
    //验证唯一
    $this->get('view/check/keyword', 'Fun\Reply\KeywordController@checkUniqueKeyword');
    //删除
    $this->delete('delete/{id}', 'Fun\Reply\KeywordController@deleteKeyword')->where('id','[0-9]+');

    //更新默认回复
    $this->post('update/other', 'Fun\Reply\OtherController@updateOther');
});